home *** CD-ROM | disk | FTP | other *** search
Makefile | 1999-11-14 | 1.5 KB | 54 lines |
- #Makefile for gcc PalmPilot crosscompiler m68k-palmos-coff-gcc package.
- # Change the strings from APP to BUILDPRC to match your own
- # system configuration.
- # Place the file into the developping directory.
- # "make clean" removes all generated files, even the ".prc".
- APP =nimhset
- ICONTEXT ="NiMHSet"
- APPID =NiMH
- RCP =$(APP).rcp
- PRC =$(APP).prc
- SRC =$(APP).c
- GRC =$(APP).grc
- BIN =$(APP).bin
-
- CC =m68k-palmos-coff-gcc
- PILRC =pilrc
- TXT2BITM =txt2bitm
- OBJRES =m68k-palmos-coff-obj-res
- BUILDPRC =build-prc
-
- # uncomment this if you want to build a gdb debuggable version
- # -On: n=Optimization-level (0=none), -g: needed for debugging
- CFLAGS =-O2 -fexpensive-optimizations -fomit-frame-pointer $(DEFINES) $(INCLUDES)
-
- all: $(PRC)
-
- $(PRC): grc.stamp bin.stamp;
- $(BUILDPRC) $(PRC) $(ICONTEXT) $(APPID) *.grc *.bin $(LINKFILES)
- ls -l $(PRC)
-
- grc.stamp: $(APP) ;
- $(OBJRES) $(APP)
- touch $@
-
- $(APP): $(APP).o ;
- $(CC) $(CFLAGS) $(APP).o -o $(APP)
-
- resource.h bin.stamp: $(RCP);
- $(PILRC) -L C -H resource.h.new $(RCP)
- if ! diff resource.h.new resource.h 2>/dev/null >/dev/null; then mv resource.h.new resource.h;fi
- touch bin.stamp
-
- $(APP).o: $(SRC) resource.h;
- $(CC) $(CFLAGS) -c $(SRC) -o $(APP).o
-
- depend dep: ;
- $(CC) -M $(SRC) > .dependencies
-
- clean:
- rm -rf *.o $(APP) *.bin *.grc *.prc *.stamp resource.h resource.h.new
-
- install: $(PRC)
- /usr/local/pilot/bin/pilot-xfer -i $(PRC)
-